<nz-upload class="avatar-uploader"
 [nzAction]="imgUploadUrl" 
 nzListType="picture-card" 
 [nzShowUploadList]="false"
  [nzBeforeUpload]="beforeUpload" 
  [nzCustomRequest]="customReq"
  nzSize = 0
  >
  <div class="closeStyle" (click)="deleteImg($event)">
    <i nz-icon nzType="close" nzTheme="outline"></i>
  </div>
  <ng-container *ngIf="!avatarUrl">
    <i class="upload-icon iconfont icon-tianjiatupian" *ngIf="!loading"></i>
    <i class="upload-icon" *ngIf="loading" nz-icon nzType="loading"></i>
  </ng-container>
 
  <img *ngIf="avatarUrl" [src]="avatarUrl" class="avatar" />
</nz-upload>
<!-- <input type="file" id="imgfile" method="post" enctype="multipart/form-data" (change)="changepic($event)"> -->